import { createRouter, createWebHistory } from "vue-router";

import Login from "../views/login.vue";
import Home from "../views/home.vue";
import Documentation from "../views/documentation.vue";
import Guide from "../views/guide.vue";

const router = createRouter({
  history: createWebHistory(),

  routes: [
    {
      path: "/home",
      component: Home,
      children: [
        {
          path: "documentation",
          component: Documentation,
        },
        {
          path: "guide",
          component: Guide,
        },
      ],
    },
    {
      path: "/login",
      component: Login,
    },
  ],
});

export default router;
